/*Yipeng Huang and Scott Rogowski*/
/*yh2315 smr2167*/

//Extend a 16 bit number to a 32 bit number paying attention to whether it is positive or negative.
//AKA, this is 2's complement logic
module SignExtender(sign_in,sign_out);

	input [15:0] sign_in;
	output [31:0] sign_out;

	//Replicate the most significant digit (the sign) of the input 16 times and concatenate the rest of the input.
	//This allows for the exact same number to be passed.
	assign sign_out = {{16{sign_in[15]}}, sign_in};
		
	endmodule
